package cn.qiyu5522.tk_ems.entity;

import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author Tonkey
 * @since 2023-02-05
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_student")
@ApiModel(value="Student对象", description="")
//@JsonIgnoreProperties({"createTime", "updateTime", "operatorId", "operator","deleted"})
@JsonIgnoreProperties({ "operatorId", "operator","deleted"})
public class Student implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "学号")
    @TableId("id")
    private Long id;

    @ApiModelProperty(value = "学生姓名")
    @ExcelProperty(value = "学生姓名")
    @TableField("name")
    private String name;

    @ApiModelProperty(value = "年龄")
    @ExcelProperty(value = "年龄")
    @TableField("age")
    private Integer age;

    @ApiModelProperty(value = "头像")
    @TableField("avatar")
    private String avatar;

    @ApiModelProperty(value = "性别")
    @ExcelProperty(value = "性别")
    @TableField("gender")
    private Integer gender;

    @ApiModelProperty(value = "所在班级")
    @ExcelProperty(value = "所在班级")
    @TableField("classroom_id")
    private Long classroomId;

    @ApiModelProperty(value = "所属专业（外键）")
    @ExcelProperty(value = "所属专业")
    @TableField("major_id")
    private Long majorId;

    @ApiModelProperty(value = "所属院系（外键）")
    @ExcelProperty(value = "所属院系")
    @TableField("department_id")
    private Long departmentId;

    @ApiModelProperty(value = "联系电话")
    @ExcelProperty(value = "联系电话")
    @TableField("phone")
    private String phone;

    @ApiModelProperty(value = "学历")
    @ExcelProperty(value = "学历")
    @TableField("diploma_id")
    private String diplomaId;

    @ApiModelProperty(value = "创建时间")
    @ExcelProperty(value = "创建时间")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @ApiModelProperty(value = "修改时间")
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "操作员编号	")
    @TableField(value = "operator_id", fill = FieldFill.INSERT_UPDATE)
    private Long operatorId;

    @ApiModelProperty(value = "操作员")
    @TableField(value = "operator", fill = FieldFill.INSERT_UPDATE)
    private String operator;

    @ApiModelProperty(value = "逻辑删除（0删1不删）")
    @TableField(value = "is_deleted",fill = FieldFill.INSERT)
    @TableLogic
    private Integer deleted;


}
